public class D5 {

    static boolean b_value;
    static byte by_value;
    static char ch_value;
    static double d_value;
    static float f_value;
    static int i_value;
    static long l_value;
    static short s_value;
    static String str_value;

    public static void main(String[] args) {
        double d1 = 70;
        double d2 = 3.0;
        double d3 = 1.11;
        long l1 = 1L;// Long Int

        System.out.println(d1 + d2 + d3);
        System.out.println(l1);
        // byte
        System.out.println("Byte " + Byte.SIZE);
        System.out.println("Byte Min " + Byte.MIN_VALUE);
        System.out.println("Byte Max " + Byte.MAX_VALUE);

        // short
        System.out.println("Short " + Short.SIZE);
        System.out.println("Short Min " + Short.MIN_VALUE);
        System.out.println("Short Max " + Short.MAX_VALUE);

        // int
        System.out.println("Int " + Integer.SIZE);
        System.out.println("Int Min " + Integer.MIN_VALUE);
        System.out.println("Int Max " + Integer.MAX_VALUE);

        // long
        System.out.println("Long " + Long.SIZE);
        System.out.println("Long Min " + Long.MIN_VALUE);
        System.out.println("Long Max " + Long.MAX_VALUE);

        // float
        System.out.println("Float " + Float.SIZE);
        System.out.println("Float Min " + Short.MIN_VALUE);
        System.out.println("Float Max " + Short.MAX_VALUE);

        // double
        System.out.println("Double " + Double.SIZE);
        System.out.println("Double Min " + Double.MIN_VALUE);
        System.out.println("Double Max " + Double.MAX_VALUE);

        // char
        System.out.println("Char " + Character.SIZE);
        System.out.println("Char Min " + Character.MIN_VALUE);
        System.out.println("Char Max " + Character.MAX_VALUE);
        // get static field
        System.out.println(b_value);
        System.out.println(by_value);
        System.out.println(ch_value);
        System.out.println(d_value);
        System.out.println(f_value);
        System.out.println(f_value);
        System.out.println(i_value);
        System.out.println(l_value);
        System.out.println(s_value);
        System.out.println(str_value);

        // final for const
        final double PI = 1.111D;
        System.out.println(PI);
        // PI = 1.12D; Not editable

        // auto convert: short bit to long bit (or int to double)
        // byte, short, char, int, long, float, double
        // boolean is not convertable as int or else
        int i1 = 123;
        byte convert_i1_to_b = (byte)i1;
        System.out.println(convert_i1_to_b);
        
        
    }

}
